Skip to content

Add TextRun as container for CheckBox #727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

irond
Copy link

@irond irond commented Feb 12, 2016

This fixes exception if you want to put checkbox inside textrun which is inside a table cell. See code above.

$table = $section->addTable();
$table->addRow();
$cell = $table->addCell(2000);
$textRun = $cell->addTextRun();
$textRun->addCheckBox('test', ' yes');
$textRun->addCheckBox('test', ' no');

@troosan troosan self-assigned this Dec 4, 2017
@troosan troosan added this to the v0.14.0 milestone Dec 4, 2017
@troosan troosan merged commit d4c6427 into PHPOffice:develop Dec 5, 2017
@troosan
Copy link
Contributor

troosan commented Dec 5, 2017

No sure why the FormField is allowed and not the CheckBox ...
I guess the CheckBox should be obsoleted in favour of the FormField.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants